Bazel: Remove deprecated bazel-toolchain dependency As of bazel-toolchain 5.1.0 release rbe_autoconfig was removed. The way forward is to generate RBE configuration and consume it from remote repository: [1]. We publish the archive to new GCloud bucket: "gerrit-bazel" and conduct new GitHub release. [1] https://github.com/bazelbuild/bazel-toolchains#option-3-remote-tarball-archive Change-Id: I4dd09c08d4cc2480ba201a0354ac49c7d6a07fd7
diff --git a/WORKSPACE b/WORKSPACE index 6fe7af5..d0f7561 100644 --- a/WORKSPACE +++ b/WORKSPACE
@@ -33,22 +33,13 @@ load("//tools:nongoogle.bzl", "declare_nongoogle_deps") http_archive( - name = "bazel_toolchains", - sha256 = "1adf7a8e9901287c644dcf9ca08dd8d67a69df94bedbd57a841490a84dc1e9ed", - strip_prefix = "bazel-toolchains-5.0.0", - urls = [ - "https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/archive/v5.0.0.tar.gz", - "https://github.com/bazelbuild/bazel-toolchains/archive/v5.0.0.tar.gz", - ], -) - -load("@bazel_toolchains//rules:rbe_repo.bzl", "rbe_autoconfig") - -# Creates a default toolchain config for RBE. -rbe_autoconfig( name = "rbe_jdk11", - java_home = "/usr/lib/jvm/11.29.3-ca-jdk11.0.2/reduced", - use_checked_in_confs = "Force", + sha256 = "766796de71916118e528b9f4334c29c9c9b4e926227bf3264dee555e6a4306c8", + strip_prefix = "rbe_autoconfig-2.0.0", + urls = [ + "https://gerrit-bazel.storage.googleapis.com/rbe_autoconfig/v2.0.0.tar.gz", + "https://github.com/davido/rbe_autoconfig/archive/v2.0.0.tar.gz", + ], ) http_archive(